package com.ruyuan.course.basic.biz.service.impl;

import com.ruyuan.course.basic.biz.common.CommonResponse;
import com.ruyuan.course.basic.biz.dao.DemoDao;
import com.ruyuan.course.basic.biz.domain.Demo;
import com.ruyuan.course.basic.biz.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author demo
 * version: 1.0
 * Description:demo service组件实现类
 **/
@Service
public class DemoServiceImpl implements DemoService {

    /**
     * demo dao组件
     */
    @Autowired
    private DemoDao demoDao;

    @Override
    public CommonResponse<Demo> getById(Integer id) {
        return new CommonResponse<>(demoDao.getById(id));
    }
}